package org.projecteboot.compent.core.utils;

import java.util.Map;

/**
 * @author LuoQiang
 * @date 2019/8/30 12:49
 **/
public class MapUtil {
    public static <T> T getMapValue(Map map, Object key) {
        if (map == null) {
            return null;
        }
        Object obj = map.get(key);
        if (obj != null) {
            return (T) obj;
        }
        return null;
    }
}
